//介绍页各项
import {Sprite} from "../base/Sprite.js";
import {DataStore} from "../base/DataStore.js";
const screenWidth    = window.innerWidth
const screenHeight   = window.innerHeight
const rpx=DataStore.getRpx()
export class Interview extends Sprite {
    constructor() {
        // const image = Sprite.getImage('interviewTit');
        // super(image,
        //     0, 0,
        //     image.width, image.height,
        //     0, 0,
        //     DataStore.getInstance().canvas.width, DataStore.getInstance().canvas.height);
        super()
    }
    drawInterviewTit(){
        const image = Sprite.getImage('interviewTit');
        super.draw(image,
            0, 0,
            image.width, image.height,
            (screenWidth-image.width/2*rpx)/2,20,
            image.width/2*rpx, image.height/2*rpx);
    }
    drawInterviewBorder(){
        const image = Sprite.getImage('border1');
        super.draw(image,
            0, 0,
            image.width, image.height,
            (screenWidth-image.width/2*rpx)/2,132*rpx,
            image.width/2*rpx, image.height/2*rpx);

        
    }

    drawStartMan(){
        const image = Sprite.getImage('startbgMan');
        super.draw(image,
            0, 0,
            image.width, image.height,
            (screenWidth-image.width/2*rpx)/2,screenHeight-image.height/2*rpx,
            image.width/2*rpx, image.height/2*rpx);
        
    }
}